.class public Lcom/xingbook/group/activity/GroupListActivity;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Lcom/xingbook/group/adapter/f;


# instance fields
.field private a:Lcom/xingbook/ui/t;

.field private b:Landroid/widget/ListView;

.field private c:Landroid/widget/ListView;

.field private d:Ljava/util/ArrayList;

.field private e:Lcom/xingbook/group/adapter/c;

.field private f:Lcom/xingbook/group/adapter/e;

.field private g:Lcom/xingbook/ui/ae;

.field private h:Landroid/view/View;

.field private i:Landroid/widget/TextView;

.field private l:Landroid/app/ProgressDialog;

.field private m:Lcom/xingbook/ui/af;

.field private n:Landroid/widget/RelativeLayout;

.field private o:Lcom/xingbook/group/activity/r;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    new-instance v0, Lcom/xingbook/group/activity/r;

    invoke-direct {v0, p0}, Lcom/xingbook/group/activity/r;-><init>(Lcom/xingbook/group/activity/GroupListActivity;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->o:Lcom/xingbook/group/activity/r;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/group/activity/GroupListActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->h:Landroid/view/View;

    return-object v0
.end method

.method private a(I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->o:Lcom/xingbook/group/activity/r;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/xingbook/group/activity/r;->sendEmptyMessage(I)Z

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/group/activity/p;

    invoke-direct {v1, p0, p1}, Lcom/xingbook/group/activity/p;-><init>(Lcom/xingbook/group/activity/GroupListActivity;I)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/group/activity/GroupListActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/group/activity/GroupListActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/group/activity/GroupListActivity;Ljava/lang/String;Z)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lcom/xingbook/group/activity/GroupListActivity;->a(Ljava/lang/String;Z)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->i:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->h:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method private a(Ljava/lang/String;Z)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    if-nez v0, :cond_0

    new-instance v0, Landroid/app/ProgressDialog;

    invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    invoke-virtual {v0, p1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    invoke-virtual {v0, p2}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    :cond_1
    return-void
.end method

.method static synthetic b(Lcom/xingbook/group/activity/GroupListActivity;)Lcom/xingbook/ui/ae;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->g:Lcom/xingbook/ui/ae;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/group/activity/GroupListActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->d:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic d(Lcom/xingbook/group/activity/GroupListActivity;)Lcom/xingbook/group/adapter/c;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->e:Lcom/xingbook/group/adapter/c;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/group/activity/GroupListActivity;)Lcom/xingbook/group/adapter/e;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->f:Lcom/xingbook/group/adapter/e;

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/group/activity/GroupListActivity;)Lcom/xingbook/group/activity/r;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->o:Lcom/xingbook/group/activity/r;

    return-object v0
.end method


# virtual methods
.method a()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->l:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    :cond_0
    return-void
.end method

.method public a(Lcom/xingbook/group/a/b;)V
    .locals 3

    iget-boolean v0, p1, Lcom/xingbook/group/a/b;->f:Z

    if-nez v0, :cond_0

    invoke-static {}, Lcom/xingbook/group/b/d;->a()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->m:Lcom/xingbook/ui/af;

    const-string v1, "\u60a8\u8fd8\u6ca1\u6709\u767b\u5f55\uff01"

    invoke-virtual {v0, p0, v1}, Lcom/xingbook/ui/af;->a(Landroid/app/Activity;Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    iget-boolean v0, p1, Lcom/xingbook/group/a/b;->f:Z

    if-eqz v0, :cond_1

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u6b63\u5728\u9000\u51fa:"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/xingbook/group/a/b;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_1
    iget-object v1, p0, Lcom/xingbook/group/activity/GroupListActivity;->o:Lcom/xingbook/group/activity/r;

    const/4 v2, 0x7

    invoke-virtual {v1, v2, v0}, Lcom/xingbook/group/activity/r;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/group/activity/q;

    invoke-direct {v1, p0, p1}, Lcom/xingbook/group/activity/q;-><init>(Lcom/xingbook/group/activity/GroupListActivity;Lcom/xingbook/group/a/b;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0

    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u6b63\u5728\u52a0\u5165:"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/xingbook/group/a/b;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_1
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u5708\u5b50-\u5217\u8868"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a014a

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/xingbook/group/activity/GroupListActivity;->a(I)V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    const/4 v4, 0x0

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030024

    invoke-static {p0, v0, v4}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->n:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->n:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupListActivity;->setContentView(Landroid/view/View;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->d:Ljava/util/ArrayList;

    new-instance v0, Lcom/xingbook/ui/t;

    invoke-direct {v0, p0, v4}, Lcom/xingbook/ui/t;-><init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->a:Lcom/xingbook/ui/t;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->a:Lcom/xingbook/ui/t;

    const-string v1, "\u5708\u5b50\u5217\u8868"

    iput-object v1, v0, Lcom/xingbook/ui/t;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->a:Lcom/xingbook/ui/t;

    const v1, -0x705e39

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/t;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->a:Lcom/xingbook/ui/t;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v2

    sget v3, Lcom/xingbook/ui/t;->b:I

    invoke-direct {v1, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/t;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v0, 0x7f0a0145

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/group/activity/GroupListActivity;->a:Lcom/xingbook/ui/t;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    const v0, 0x7f0a0147

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->b:Landroid/widget/ListView;

    new-instance v0, Lcom/xingbook/group/adapter/c;

    iget-object v1, p0, Lcom/xingbook/group/activity/GroupListActivity;->d:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/xingbook/group/activity/GroupListActivity;->b:Landroid/widget/ListView;

    invoke-direct {v0, p0, v1, v2}, Lcom/xingbook/group/adapter/c;-><init>(Landroid/app/Activity;Ljava/util/ArrayList;Landroid/widget/ListView;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->e:Lcom/xingbook/group/adapter/c;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->b:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/xingbook/group/activity/GroupListActivity;->e:Lcom/xingbook/group/adapter/c;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0a0149

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->c:Landroid/widget/ListView;

    new-instance v0, Lcom/xingbook/group/adapter/e;

    invoke-direct {v0, p0, p0, v4}, Lcom/xingbook/group/adapter/e;-><init>(Landroid/app/Activity;Lcom/xingbook/group/adapter/f;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->f:Lcom/xingbook/group/adapter/e;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/xingbook/group/activity/GroupListActivity;->f:Lcom/xingbook/group/adapter/e;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0a014a

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->h:Landroid/view/View;

    const v0, 0x7f0a014b

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->i:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->h:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->n:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->g:Lcom/xingbook/ui/ae;

    const/16 v0, 0x96

    invoke-direct {p0, v0}, Lcom/xingbook/group/activity/GroupListActivity;->a(I)V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getId()I

    move-result v0

    const v1, 0x7f0a0147

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->e:Lcom/xingbook/group/adapter/c;

    invoke-virtual {v0, p3}, Lcom/xingbook/group/adapter/c;->a(I)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->d:Ljava/util/ArrayList;

    invoke-virtual {v0, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/group/a/c;

    invoke-virtual {v0}, Lcom/xingbook/group/a/c;->a()Ljava/util/ArrayList;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/group/activity/GroupListActivity;->f:Lcom/xingbook/group/adapter/e;

    invoke-virtual {v1, v0}, Lcom/xingbook/group/adapter/e;->a(Ljava/util/ArrayList;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Landroid/widget/AdapterView;->getId()I

    move-result v0

    const v1, 0x7f0a0149

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->f:Lcom/xingbook/group/adapter/e;

    invoke-virtual {v0, p3}, Lcom/xingbook/group/adapter/e;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v1, v0, Lcom/xingbook/group/a/b;

    if-eqz v1, :cond_0

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/xingbook/group/activity/GroupDetailActivity;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "com.xingbook.group.activity.INTENT_GROUPID"

    check-cast v0, Lcom/xingbook/group/a/b;

    iget-object v0, v0, Lcom/xingbook/group/a/b;->a:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v1}, Lcom/xingbook/group/activity/GroupListActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/group/activity/GroupListActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->n:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/af;->a(Landroid/view/ViewGroup;Landroid/app/Activity;)Lcom/xingbook/ui/af;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->m:Lcom/xingbook/ui/af;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->n:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupListActivity;->g:Lcom/xingbook/ui/ae;

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/group/activity/GroupListActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
